﻿@using LogManager.Helpers
@functions{
    public string Selected(string action)
    {
        return Url.HasAction(action) ? "selected" : string.Empty;
    }    
}  

<ul class="nav">
    <li class="@Selected("EventsPerDay")">
        @Html.ActionLink("Events per day","EventsPerDay")
    </li>
    <li class="@Selected("EventsPerLogPercentage")">
        @Html.ActionLink("Events per log percentage", "EventsPerLogPercentage")
    </li>
    <li class="@Selected("EventsPerLogColumn")">
        @Html.ActionLink("Events per log", "EventsPerLogColumn")
    </li>
</ul>
